<include file='__PUBLIC__/frame.html'/>
		<!-- start right -->
<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl">轮播图列表</span>
			<span class="fr fabu"><a href="{|U:'Slide/add'}">新增轮播图</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="mod" value="article" />
				轮播图名称：<input type="text" name="name" value="" class="inputtext inputtext_200" />
				<select name="class_id" class="inputselect">
				<option value="" href="?mod=article">全部轮播图</option>
								<option value="1" href="?mod=article&class_id=1" >网站公告</option>
								<option value="2" href="?mod=article&class_id=2" >公司动态</option>
								<option value="3" href="?mod=article&class_id=3" >相关知识</option>
								<option value="4" href="?mod=article&class_id=4" >商城新闻</option>
								</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="150">轮播图ID</td>
		<td class="bgtt" width="200" >轮播图</td>
		<td class="bgtt" width="150" >类型</td>
		<td class="bgtt" width="100">链接</td>
		<td class="bgtt" width="188">操作</td>
	</tr>
	<foreach from='$data' key='$key' value='$v'>
	<tr>
		<td>{$v.sid}</td>
		<td style="text-align: center;" class="aleft"><img style="width: 200px; height: 42px;" src="__ROOT__/{$v.sthumb}" alt="" /></td>
		<td>{$v.type}</td>
		<td>{$v.link}</td>
		<td >
			<a href="{|U:'Slide/edit',array('sid'=>$v['sid'])}" class="admin_edit mar3">修改</a>
			<a href="{|U:'Slide/del',array('sid'=>$v['sid'])}" class="admin_del" onclick="return confirm('确认删除吗')">删除</a>
			
		</td>
	</tr>
	</foreach>
	</table>
	</form>
</div>
<script type="text/javascript"> 
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
	
		<div class="clear"></div>
	</div>
	<div class="foot">Copyright <span class="num">&copy;</span> 2014-2017 <a target="_blank" href="#"></a> 版权所有</div>
</div>
<script type="text/javascript"> 
$(function(){
	$(".list").find("tr").hover(
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#ffffdd");
		},
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#fff");
		}
	)
})
</script>

		<!-- end right -->

</body>
</html>	
